<template>
  <el-dialog :visible.sync="isShow">
    <template>
      <el-form label-width="100px">
        <el-form-item label="部门名称">
          <el-input />
        </el-form-item>
        <el-form-item label="部门编码">
          <el-input />
        </el-form-item>
        <el-form-item label="部门负责人">
          <el-select>
            <el-option v-for="i in 3" :key="i" />
          </el-select>
        </el-form-item>
        <el-form-item label="部门介绍">
          <el-input />
        </el-form-item>
      </el-form>
    </template>
    <template #footer>
      <div style="text-align: center">
        <el-button>取消</el-button>
        <el-button type="primary">确定</el-button>
      </div>
    </template>
  </el-dialog>
</template>

<script>
export default {
  name: 'DialogItem',

  data () {
    return {
      isShow: false,
      form: {
        name: '', // 部门名称
        code: '', // 部门编码，同级部门不可重复
        manager: '', // 负责人名称
        introduce: '', // 介绍
        pid: '' // 父级部门ID
      }
    }
  }
}
</script>

<style lang="scss" scoped>
::v-deep .el-form-item__label {
  font-weight: 400;
}
</style>
